
var query = require('querystring');

var queryString = 'name=gavin&company=javapoint';
var obj1 = query.parse(queryString);

console.log("parse: %s", obj1);

var stringified = query.stringify(obj1);
console.log("stringify: %s", stringified);